package com.myapp.utils;

/**
 * author : YuFeng
 * e-mail : 923462992@qq.com
 * date   : 2019/8/1520:30
 * desc   :
 */
public class ClickUtils {
    private static long lastClickTime;
    public static boolean isFastDoubleClick() {
        long time = System.currentTimeMillis();
        if ( time - lastClickTime < 2000) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}
